//
//  Overload_Inheritance<<.cpp
//  learnC++
//
//  Created by liuzhibing on 2018/6/19.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#include "Overload_Inheritance<<.hpp"

std::ostream & operator<<(std::ostream &out,Base13 &b){

    return b.print(out);
}

std::ostream &Base13::print(std::ostream &out) const{
    out << "Base\n";
    return out;
}

std::ostream &Derived13::print(std::ostream &out) const{
    out << "Derived\n";
    return out;
}

